package com.asia5b.a5mall.home.adapter

import com.asia5b.a5mall.home.R
import com.asia5b.a5mall.home.databinding.ItemHomeMenuAdapterBinding
import com.asia5b.a5mall.home.databinding.ItemHomeMenuBinding
import com.asia5b.a5mall.middleware.model.home.HomeMenuModel
import com.asia5b.a5mall.middleware.utils.WImageLoader
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.chad.library.adapter.base.viewholder.BaseViewHolder

/**
 * Created by zhangyuncai on 2020/3/17.
 */
class HomeMenuAdapter(list: ArrayList<HomeMenuModel>) :
        BaseQuickAdapter<HomeMenuModel, BaseDataBindingHolder<ItemHomeMenuAdapterBinding>>(R.layout.item_home_menu_adapter, list) {
    override fun convert(helper: BaseDataBindingHolder<ItemHomeMenuAdapterBinding>, item: HomeMenuModel) {
        helper.dataBinding!!.item=item
    }
}